package com.example.teacherservice.dto;

import com.example.teacherservice.entity.User;
import lombok.Data;

@Data
public class UserInfo {
    private Long id;
    private String username;
    private String pic;

    public UserInfo(User user) {
        this.id = user.getId();
        this.username = user.getUsername();
        this.pic = user.getPic();
    }
}
